Skip to content

math.fsum: handle special values (inf, nan); -inf + inf raises ValueError#2727

Merged
PierreQuentel merged 1 commit into
brython-dev:masterfrom
fgallaire:math-fsum
Jun 12, 2026
Merged

math.fsum: handle special values (inf, nan); -inf + inf raises ValueError#2727
PierreQuentel merged 1 commit into
brython-dev:masterfrom
fgallaire:math-fsum

Conversation

@fgallaire

Copy link
Copy Markdown
Contributor
>>> math.fsum([float('inf'), float('-inf')])
nan                             # before
>>> math.fsum([float('inf'), float('-inf')])
ValueError: -inf + inf in fsum  # after

@PierreQuentel PierreQuentel merged commit 49769ec into brython-dev:master Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants